﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace FRL.DebtChased.Silverlight.Library
{
    public partial class FieldNoteCtrl : UserControl
    {
        public static EventHandler<FieldNoteClickEventArgs> NoteCtrlClickEvent;

        public FieldNoteCtrl()
        {
            InitializeComponent();
        }

        public Brush Fill
        {
            get { return NoteCtrl.Fill; }
            set { NoteCtrl.Fill = value; }
        }

        public string NoteField { get; set; }

        private void NoteCtrl_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            if (null != NoteCtrlClickEvent)
            {
                NoteCtrlClickEvent(this, new FieldNoteClickEventArgs(NoteField));
            }
        }
 

    }

    public class FieldNoteClickEventArgs : EventArgs
    {
        private string _noteField;
        public string NoteField { get { return _noteField; } }

        public FieldNoteClickEventArgs(string noteField)
        {
            this._noteField = noteField;
        }
    }
}
